#ifndef _DIALOG_MAIN_H_
#define _DIALOG_MAIN_H_

#include "dialog.h"
#include "button.h"
#include "edit.h"
#include "bitmap_button.h"
#include "check_box.h"
#include "gui_list.h"


class MainDialog:public Dialog
{
public:
    MainDialog(HWND parent=0);
    ~MainDialog();

    Button *pButtonDate;
    Button *pButtonTime;
    BitmapButton *pBitmapButtonLight;
    BitmapButton *pBitmapButtonContrast;
    BitmapButton *pBitmapButtonSD;
    BitmapButton *pBitmapButtonSPort;
    BitmapButton *pBitmapButtonSpeeker;
    BitmapButton *pBitmapButtonAntenna;
    BitmapButton *pBitmapButtonVolt;
    BitmapButton *pBitmapButtonRSSI;
    BitmapButton *pBitmapButtonBattery;
    CheckBox *pCheckBox;
    List *pListMode;

    Edit *pEditName;
    
    int buttonDateDown();
    int buttonTimeDown();
    int buttonLightDown();
    int buttonContrastDown();
    int nameChanged();
    
    
private:
    void setupWidgets();
    void cleanWidgets();
    void setupGeometry();
    void draw(Rect *r);
    int eventHandler(HWND hWnd, int iMsg, WPARAM wParam, LPARAM lParam);

};


#endif

